<!doctype html>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/_mozilla/bluetooth/bluetooth-helpers.js"></script>
<script>
'use strict';
promise_test(() => {
    window.testRunner.setBluetoothMockDataSet(adapter_type.no_name_heart_rate);
    return window.navigator.bluetooth.requestDevice({acceptAllDevices: true})
    .then(device => assert_equals(device.name, null));
}, 'Device with no name or UUIDs nearby. Should be found if acceptAllDevices is true.');
</script>
